@model SpotsHub.Gateway.Models.Customer.MembershipPaymentMethodModel
@{
    ViewBag.Title = "PaymentMethod";    
}

 <div class="payment-methods">
     @if (Model.PaymentMethods.Count > 0)
     {
        <form id="MembershipPaymentMethod" method="POST">
            <div>
                @for (int i = 0; i < Model.PaymentMethods.Count; i++)
                {
                    var paymentMethod = Model.PaymentMethods[i];
                    <div class="payment-method-item">
                        <div class="option-name">
                            <input id="paymentmethod_@(i)" type="radio" name="paymentmethod" value="@(paymentMethod.PaymentMethodSystemName)" checked="@paymentMethod.Selected" />
                            <label for="paymentmethod_@(i)">@paymentMethod.Name</label>
                            @if (!String.IsNullOrEmpty(paymentMethod.Fee))
                            {
                                <text>(</text>
                                @paymentMethod.Fee
                                <text>)</text>
                            }
                        </div>
                    </div>
                }
                <div class="clear">
                </div>
            </div>
        </form>

     }
     else
     {
    <div class="clear">
    </div>
    <div class="message-error">
        @T("Checkout.NoPaymentMethods")
    </div>
}
</div>

